package com.forum.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;


public enum isManagerEnum {
    NO(0,"普通用户"),
    IS(1,"管理员");

    public Integer getKey() {
        return key;
    }

    public void setKey(Integer key) {
        this.key = key;
    }

    public String getChangedAdmin() {
        return changedAdmin;
    }

    public void setChangedAdmin(String changedAdmin) {
        this.changedAdmin = changedAdmin;
    }

    isManagerEnum(Integer key, String changedAdmin) {
        this.key = key;
        this.changedAdmin = changedAdmin;
    }

    @EnumValue
    private Integer key;
    @JsonValue
    private String changedAdmin;



}
